package com.fzj.example.design.prototype;

import java.io.Serializable;
/**
* @Description 使用Java序列化方法
* @Author  fanzj
* @Date   2020/5/7 1:22 下午
* @Param
* @Return
* @Exception
*
*/
public class User implements Serializable {

    private static final long serialVersionUID = -2944271069046848098L;
    private Name name;
    private String phone;
    private String address;
    private int age;

    public Name getName() {
        return name;
    }

    public void setName(Name name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }


}
